pay (someone) back in (their) own coin

Translations
отплатить (кому-то) той же монетой
After being mistreated, she decided to pay him back in his own coin.
После дурного обращения, она решила отплатить ему той же монетой.
Definitions
To treat someone in the same negative or unfair way that they have treated you; to retaliate or get revenge by using the same methods that the other person used.